//
//  UIVIew+extension.swift
//  PandaEye_Weibo
//
//  Created by Xuan Zhang on 16/6/15.
//  Copyright © 2016年 Xuan Zhang. All rights reserved.
//

import UIKit
extension UIView{
    var originx:CGFloat {
        set(newValue){
            self.frame.origin.x = newValue
        }
        get{
            return self.frame.origin.x
        }
    }
    
    var width:CGFloat{
        set{
            self.bounds.size.width = newValue
        }
        get{
            return self.bounds.size.width
        }
    }
}
